package com.zhangtai.modules.entity.system;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

	import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import com.zhangtai.config.LongJsonDeserializer;
import com.zhangtai.config.LongJsonSerializer;
import lombok.Data;

/**
 * 系统用户
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-06-22 00:28:55
 */
@Data
@TableName("sys_user")
public class UserEntity implements Serializable {
	private static final long serialVersionUID = 1L;

			/**
		 * 
		 */
				@TableId
		@JsonDeserialize(using = LongJsonDeserializer.class)
		@JsonSerialize(using = LongJsonSerializer.class)
			private Long userId;
			/**
		 * 用户名
		 */
			private String username;
//
//	/**
//	 * bpm账号
//	 */
//	private String useraccount;
			/**
		 * 密码
		 */
			private String password;
			/**
		 * 邮箱
		 */
			private String email;
			/**
		 * 手机号
		 */
			private String mobile;
			/**
		 * 状态  0：禁用   1：正常
		 */
			private Integer status;
			/**
		 * 创建时间
		 */
			private Date createTime;
			/**
		 * 姓名
		 */
			private String name;
			/**
		 * 工号
		 */
			private String usercode;
			/**
		 * 岗位
		 */
			private String jobname;
			/**
		 * 部门
		 */
			private String department;
			/**
		 * 头像
		 */
			private String avatar;
			/**
		 * 组织
		 */
			private String orgname;
	@JsonDeserialize(using = LongJsonDeserializer.class)
	@JsonSerialize(using = LongJsonSerializer.class)
			private Long orgId;
	@JsonDeserialize(using = LongJsonDeserializer.class)
	@JsonSerialize(using = LongJsonSerializer.class)
			private Long depId;
	@JsonDeserialize(using = LongJsonDeserializer.class)
	@JsonSerialize(using = LongJsonSerializer.class)
			private Long jobId;
			/**
		 * 0:正常，1：删除
		 */
			private Integer isDelete;

	/**
	 * 企微账号
	 */
	private String qwAccount;

	/**
	 * redis中的uuid
	 */
	private String token;
	

	/**
	 * 组id
	 */
//	private Long groupId;


	
}
